package base.thread_JUC2.chapter02.demo03;

public class Consumer implements Runnable {
    private EventStorage eventStorage;

    public Consumer (EventStorage eventStorage) {
        this.eventStorage = eventStorage;
    }

    @Override
    public void run() {
        for (int i = 0; i < 51; i++) {
            eventStorage.get();
        }
    }
}
